package com.moody.hibernate.domain;



/**
 * GuaranteeInfoId entity. @author MyEclipse Persistence Tools
 */

public class GuaranteeInfoId  implements java.io.Serializable {


    // Fields    

     private String debtNo;
     private String guarantorId;


    // Constructors

    /** default constructor */
    public GuaranteeInfoId() {
    }

    
    /** full constructor */
    public GuaranteeInfoId(String debtNo, String guarantorId) {
        this.debtNo = debtNo;
        this.guarantorId = guarantorId;
    }

   
    // Property accessors

    public String getDebtNo() {
        return this.debtNo;
    }
    
    public void setDebtNo(String debtNo) {
        this.debtNo = debtNo;
    }

    public String getGuarantorId() {
        return this.guarantorId;
    }
    
    public void setGuarantorId(String guarantorId) {
        this.guarantorId = guarantorId;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof GuaranteeInfoId) ) return false;
		 GuaranteeInfoId castOther = ( GuaranteeInfoId ) other; 
         
		 return ( (this.getDebtNo()==castOther.getDebtNo()) || ( this.getDebtNo()!=null && castOther.getDebtNo()!=null && this.getDebtNo().equals(castOther.getDebtNo()) ) )
 && ( (this.getGuarantorId()==castOther.getGuarantorId()) || ( this.getGuarantorId()!=null && castOther.getGuarantorId()!=null && this.getGuarantorId().equals(castOther.getGuarantorId()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getDebtNo() == null ? 0 : this.getDebtNo().hashCode() );
         result = 37 * result + ( getGuarantorId() == null ? 0 : this.getGuarantorId().hashCode() );
         return result;
   }   





}